import request from '@/utils/request'

// 时间段列表
export function slotLists(params?: Record<string, any>) {
    return request.get({ url: '/slot/list', params })
}

// 时间段详情
export function slotDetail(params: Record<string, any>) {
    return request.get({ url: '/slot/detail', params })
}

// 时间段新增
export function slotAdd(params: Record<string, any>) {
    return request.post({ url: '/slot/add', params })
}

// 时间段编辑
export function slotEdit(params: Record<string, any>) {
    return request.post({ url: '/slot/edit', params })
}

// 时间段删除
export function slotDelete(params: Record<string, any>) {
    return request.post({ url: '/slot/del', params })
}

// 获取网站信息
export function getWebsite() {
    return request.get({ url: '/slot/getDaySet' })
}
// 设置网站信息
export function setWebsite(params: any) {
    return request.post({ url: '/slot/saveDay', params })
}
